.class public Lcom/zuimeia/ui/progresswheel/ProgressWheel;
.super Landroid/view/View;
.source "ProgressWheel.java"


# instance fields
.field private barColor:I

.field private barLength:I

.field private barPaint:Landroid/graphics/Paint;

.field private barWidth:I

.field private circleBounds:Landroid/graphics/RectF;

.field private circleColor:I

.field private circlePaint:Landroid/graphics/Paint;

.field private circleRadius:I

.field private delayMillis:I

.field private fullRadius:I

.field private layoutH:I

.field private layoutW:I

.field private paddingBottom:I

.field private paddingLeft:I

.field private paddingRight:I

.field private paddingTop:I

.field private progress:I

.field private rectBounds:Landroid/graphics/RectF;

.field private rimColor:I

.field private rimPaint:Landroid/graphics/Paint;

.field private rimWidth:I

.field private spinSpeed:I

.field private text:Ljava/lang/String;

.field private textColor:I

.field private textPaint:Landroid/graphics/Paint;

.field private textSize:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    const/4 v1, 0x0

    .line 64
    invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 26
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->layoutH:I

    .line 27
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->layoutW:I

    .line 28
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->fullRadius:I

    .line 29
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleRadius:I

    .line 30
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barLength:I

    .line 32
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    .line 33
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimWidth:I

    .line 34
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textSize:I

    .line 36
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingTop:I

    .line 37
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingBottom:I

    .line 38
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingLeft:I

    .line 39
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingRight:I

    .line 41
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barColor:I

    .line 42
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleColor:I

    .line 43
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimColor:I

    .line 46
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barPaint:Landroid/graphics/Paint;

    .line 47
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circlePaint:Landroid/graphics/Paint;

    .line 48
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimPaint:Landroid/graphics/Paint;

    .line 49
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textPaint:Landroid/graphics/Paint;

    .line 51
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rectBounds:Landroid/graphics/RectF;

    .line 53
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleBounds:Landroid/graphics/RectF;

    .line 56
    const/16 v0, 0x14

    iput v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->spinSpeed:I

    .line 58
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->delayMillis:I

    .line 59
    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->progress:I

    .line 61
    const-string v0, ""

    iput-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->text:Ljava/lang/String;

    .line 65
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 68
    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 69
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 9
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    const/4 v4, -0x1

    const/4 v3, 0x0

    .line 78
    invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 26
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->layoutH:I

    .line 27
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->layoutW:I

    .line 28
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->fullRadius:I

    .line 29
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleRadius:I

    .line 30
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barLength:I

    .line 32
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    .line 33
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimWidth:I

    .line 34
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textSize:I

    .line 36
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingTop:I

    .line 37
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingBottom:I

    .line 38
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingLeft:I

    .line 39
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingRight:I

    .line 41
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barColor:I

    .line 42
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleColor:I

    .line 43
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimColor:I

    .line 46
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V

    iput-object v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barPaint:Landroid/graphics/Paint;

    .line 47
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V

    iput-object v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circlePaint:Landroid/graphics/Paint;

    .line 48
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V

    iput-object v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimPaint:Landroid/graphics/Paint;

    .line 49
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V

    iput-object v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textPaint:Landroid/graphics/Paint;

    .line 51
    new-instance v1, Landroid/graphics/RectF;

    invoke-direct {v1}, Landroid/graphics/RectF;-><init>()V

    iput-object v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rectBounds:Landroid/graphics/RectF;

    .line 53
    new-instance v1, Landroid/graphics/RectF;

    invoke-direct {v1}, Landroid/graphics/RectF;-><init>()V

    iput-object v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleBounds:Landroid/graphics/RectF;

    .line 56
    const/16 v1, 0x14

    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->spinSpeed:I

    .line 58
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->delayMillis:I

    .line 59
    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->progress:I

    .line 61
    const-string v1, ""

    iput-object v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->text:Ljava/lang/String;

    .line 79
    sget-object v1, Lcom/zuimeia/ui/R$styleable;->CircleProgress:[I

    invoke-virtual {p1, p2, v1, p3, v3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 80
    .local v0, "a":Landroid/content/res/TypedArray;
    sget v1, Lcom/zuimeia/ui/R$styleable;->CircleProgress_textColor:I

    invoke-virtual {v0, v1, v4}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v1

    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textColor:I

    .line 81
    sget v1, Lcom/zuimeia/ui/R$styleable;->CircleProgress_textSize:I

    const/16 v2, 0x20

    invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v1

    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textSize:I

    .line 82
    sget v1, Lcom/zuimeia/ui/R$styleable;->CircleProgress_circleColor:I

    invoke-virtual {v0, v1, v3}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v1

    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleColor:I

    .line 83
    sget v1, Lcom/zuimeia/ui/R$styleable;->CircleProgress_rimColor:I

    invoke-virtual {v0, v1, v4}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v1

    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barColor:I

    .line 84
    sget v1, Lcom/zuimeia/ui/R$styleable;->CircleProgress_barColor:I

    invoke-virtual {v0, v1, v3}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v1

    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimColor:I

    .line 85
    sget v1, Lcom/zuimeia/ui/R$styleable;->CircleProgress_barRimWidth:I

    const/4 v2, 0x2

    invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v1

    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimWidth:I

    iput v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    .line 86
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    .line 87
    return-void
.end method

.method private setupBounds()V
    .registers 10

    .prologue
    .line 130
    iget v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->layoutW:I

    iget v4, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->layoutH:I

    invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I

    move-result v0

    .line 133
    .local v0, "minValue":I
    iget v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->layoutW:I

    sub-int v1, v3, v0

    .line 134
    .local v1, "xOffset":I
    iget v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->layoutH:I

    sub-int v2, v3, v0

    .line 137
    .local v2, "yOffset":I
    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getPaddingTop()I

    move-result v3

    div-int/lit8 v4, v2, 0x2

    add-int/2addr v3, v4

    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingTop:I

    .line 138
    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getPaddingBottom()I

    move-result v3

    div-int/lit8 v4, v2, 0x2

    add-int/2addr v3, v4

    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingBottom:I

    .line 139
    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getPaddingLeft()I

    move-result v3

    div-int/lit8 v4, v1, 0x2

    add-int/2addr v3, v4

    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingLeft:I

    .line 140
    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getPaddingRight()I

    move-result v3

    div-int/lit8 v4, v1, 0x2

    add-int/2addr v3, v4

    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingRight:I

    .line 142
    new-instance v3, Landroid/graphics/RectF;

    iget v4, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingLeft:I

    int-to-float v4, v4

    iget v5, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingTop:I

    int-to-float v5, v5

    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v6

    iget v6, v6, Landroid/view/ViewGroup$LayoutParams;->width:I

    iget v7, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingRight:I

    sub-int/2addr v6, v7

    int-to-float v6, v6

    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v7

    iget v7, v7, Landroid/view/ViewGroup$LayoutParams;->height:I

    iget v8, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingBottom:I

    sub-int/2addr v7, v8

    int-to-float v7, v7

    invoke-direct {v3, v4, v5, v6, v7}, Landroid/graphics/RectF;-><init>(FFFF)V

    iput-object v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rectBounds:Landroid/graphics/RectF;

    .line 144
    new-instance v3, Landroid/graphics/RectF;

    iget v4, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingLeft:I

    iget v5, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    add-int/2addr v4, v5

    int-to-float v4, v4

    iget v5, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingTop:I

    iget v6, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    add-int/2addr v5, v6

    int-to-float v5, v5

    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v6

    iget v6, v6, Landroid/view/ViewGroup$LayoutParams;->width:I

    iget v7, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingRight:I

    sub-int/2addr v6, v7

    iget v7, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    sub-int/2addr v6, v7

    int-to-float v6, v6

    .line 145
    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v7

    iget v7, v7, Landroid/view/ViewGroup$LayoutParams;->height:I

    iget v8, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingBottom:I

    sub-int/2addr v7, v8

    iget v8, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    sub-int/2addr v7, v8

    int-to-float v7, v7

    invoke-direct {v3, v4, v5, v6, v7}, Landroid/graphics/RectF;-><init>(FFFF)V

    iput-object v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleBounds:Landroid/graphics/RectF;

    .line 147
    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    iget v3, v3, Landroid/view/ViewGroup$LayoutParams;->width:I

    iget v4, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingRight:I

    sub-int/2addr v3, v4

    iget v4, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    sub-int/2addr v3, v4

    div-int/lit8 v3, v3, 0x2

    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->fullRadius:I

    .line 148
    iget v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->fullRadius:I

    iget v4, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    sub-int/2addr v3, v4

    add-int/lit8 v3, v3, 0x1

    iput v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleRadius:I

    .line 149
    return-void
.end method

.method private setupPaints()V
    .registers 4

    .prologue
    const/4 v2, 0x1

    .line 105
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barPaint:Landroid/graphics/Paint;

    iget v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barColor:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 106
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barPaint:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 107
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barPaint:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 108
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barPaint:Landroid/graphics/Paint;

    iget v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 110
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimPaint:Landroid/graphics/Paint;

    iget v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimColor:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 111
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimPaint:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 112
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimPaint:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 113
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimPaint:Landroid/graphics/Paint;

    iget v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimWidth:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 115
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circlePaint:Landroid/graphics/Paint;

    iget v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleColor:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 116
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circlePaint:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 117
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circlePaint:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 119
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textPaint:Landroid/graphics/Paint;

    iget v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textColor:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 120
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textPaint:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 121
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textPaint:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 122
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textPaint:Landroid/graphics/Paint;

    iget v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textSize:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 123
    return-void
.end method


# virtual methods
.method public getBarColor()I
    .registers 2

    .prologue
    .line 266
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barColor:I

    return v0
.end method

.method public getBarLength()I
    .registers 2

    .prologue
    .line 210
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barLength:I

    return v0
.end method

.method public getBarWidth()I
    .registers 2

    .prologue
    .line 218
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    return v0
.end method

.method public getCircleColor()I
    .registers 2

    .prologue
    .line 274
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleColor:I

    return v0
.end method

.method public getCircleRadius()I
    .registers 2

    .prologue
    .line 202
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleRadius:I

    return v0
.end method

.method public getDelayMillis()I
    .registers 2

    .prologue
    .line 314
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->delayMillis:I

    return v0
.end method

.method public getPaddingBottom()I
    .registers 2

    .prologue
    .line 242
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingBottom:I

    return v0
.end method

.method public getPaddingLeft()I
    .registers 2

    .prologue
    .line 250
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingLeft:I

    return v0
.end method

.method public getPaddingRight()I
    .registers 2

    .prologue
    .line 258
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingRight:I

    return v0
.end method

.method public getPaddingTop()I
    .registers 2

    .prologue
    .line 234
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingTop:I

    return v0
.end method

.method public getRimColor()I
    .registers 2

    .prologue
    .line 282
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimColor:I

    return v0
.end method

.method public getRimShader()Landroid/graphics/Shader;
    .registers 2

    .prologue
    .line 290
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimPaint:Landroid/graphics/Paint;

    invoke-virtual {v0}, Landroid/graphics/Paint;->getShader()Landroid/graphics/Shader;

    move-result-object v0

    return-object v0
.end method

.method public getRimWidth()I
    .registers 2

    .prologue
    .line 306
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimWidth:I

    return v0
.end method

.method public getSpinSpeed()I
    .registers 2

    .prologue
    .line 298
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->spinSpeed:I

    return v0
.end method

.method public getTextSize()I
    .registers 2

    .prologue
    .line 226
    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textSize:I

    return v0
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .registers 12
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    const/4 v4, 0x0

    const/high16 v2, 0x43b40000

    const/high16 v9, 0x40000000

    .line 153
    invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V

    .line 155
    iget-object v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleBounds:Landroid/graphics/RectF;

    iget-object v5, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimPaint:Landroid/graphics/Paint;

    move-object v0, p1

    move v3, v2

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V

    .line 157
    iget-object v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleBounds:Landroid/graphics/RectF;

    const/high16 v2, -0x3d4c0000

    iget v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->progress:I

    int-to-float v3, v0

    iget-object v5, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barPaint:Landroid/graphics/Paint;

    move-object v0, p1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V

    .line 159
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleBounds:Landroid/graphics/RectF;

    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result v0

    div-float/2addr v0, v9

    iget v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimWidth:I

    int-to-float v1, v1

    add-float/2addr v0, v1

    iget v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingLeft:I

    int-to-float v1, v1

    add-float/2addr v0, v1

    iget-object v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleBounds:Landroid/graphics/RectF;

    invoke-virtual {v1}, Landroid/graphics/RectF;->height()F

    move-result v1

    div-float/2addr v1, v9

    iget v2, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimWidth:I

    int-to-float v2, v2

    add-float/2addr v1, v2

    iget v2, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingTop:I

    int-to-float v2, v2

    add-float/2addr v1, v2

    iget v2, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleRadius:I

    int-to-float v2, v2

    iget-object v3, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circlePaint:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    .line 161
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textPaint:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 162
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textPaint:Landroid/graphics/Paint;

    invoke-virtual {v0}, Landroid/graphics/Paint;->getFontMetrics()Landroid/graphics/Paint$FontMetrics;

    move-result-object v7

    .line 163
    .local v7, "fontMetrics":Landroid/graphics/Paint$FontMetrics;
    iget v0, v7, Landroid/graphics/Paint$FontMetrics;->bottom:F

    iget v1, v7, Landroid/graphics/Paint$FontMetrics;->top:F

    sub-float v6, v0, v1

    .line 165
    .local v6, "fontHeight":F
    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getWidth()I

    move-result v0

    int-to-float v0, v0

    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getHeight()I

    move-result v1

    int-to-float v1, v1

    sub-float/2addr v1, v6

    div-float/2addr v1, v9

    sub-float/2addr v0, v1

    iget v1, v7, Landroid/graphics/Paint$FontMetrics;->bottom:F

    sub-float v8, v0, v1

    .line 166
    .local v8, "textBaseY":F
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->text:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->getWidth()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    int-to-float v1, v1

    iget-object v2, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textPaint:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v8, v2}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 167
    return-void
.end method

.method protected onMeasure(II)V
    .registers 3
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .prologue
    .line 73
    invoke-super {p0, p1, p2}, Landroid/view/View;->onMeasure(II)V

    .line 75
    return-void
.end method

.method protected onSizeChanged(IIII)V
    .registers 5
    .param p1, "w"    # I
    .param p2, "h"    # I
    .param p3, "oldw"    # I
    .param p4, "oldh"    # I

    .prologue
    .line 91
    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/View;->onSizeChanged(IIII)V

    .line 94
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->layoutW:I

    .line 95
    iput p2, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->layoutH:I

    .line 98
    invoke-direct {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->setupBounds()V

    .line 99
    invoke-direct {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->setupPaints()V

    .line 100
    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->invalidate()V

    .line 102
    return-void
.end method

.method public resetCount()V
    .registers 2

    .prologue
    .line 173
    const/4 v0, 0x0

    iput v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->progress:I

    .line 174
    const-string v0, "0%"

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->setText(Ljava/lang/String;)V

    .line 175
    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->invalidate()V

    .line 176
    return-void
.end method

.method public setBarColor(I)V
    .registers 2
    .param p1, "barColor"    # I

    .prologue
    .line 270
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barColor:I

    .line 271
    return-void
.end method

.method public setBarLength(I)V
    .registers 2
    .param p1, "barLength"    # I

    .prologue
    .line 214
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barLength:I

    .line 215
    return-void
.end method

.method public setBarWidth(I)V
    .registers 2
    .param p1, "barWidth"    # I

    .prologue
    .line 222
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->barWidth:I

    .line 223
    return-void
.end method

.method public setCircleColor(I)V
    .registers 2
    .param p1, "circleColor"    # I

    .prologue
    .line 278
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleColor:I

    .line 279
    return-void
.end method

.method public setCircleRadius(I)V
    .registers 2
    .param p1, "circleRadius"    # I

    .prologue
    .line 206
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->circleRadius:I

    .line 207
    return-void
.end method

.method public setDelayMillis(I)V
    .registers 2
    .param p1, "delayMillis"    # I

    .prologue
    .line 318
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->delayMillis:I

    .line 319
    return-void
.end method

.method public setPaddingBottom(I)V
    .registers 2
    .param p1, "paddingBottom"    # I

    .prologue
    .line 246
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingBottom:I

    .line 247
    return-void
.end method

.method public setPaddingLeft(I)V
    .registers 2
    .param p1, "paddingLeft"    # I

    .prologue
    .line 254
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingLeft:I

    .line 255
    return-void
.end method

.method public setPaddingRight(I)V
    .registers 2
    .param p1, "paddingRight"    # I

    .prologue
    .line 262
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingRight:I

    .line 263
    return-void
.end method

.method public setPaddingTop(I)V
    .registers 2
    .param p1, "paddingTop"    # I

    .prologue
    .line 238
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->paddingTop:I

    .line 239
    return-void
.end method

.method public setProgress(I)V
    .registers 5
    .param p1, "i"    # I

    .prologue
    .line 182
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->progress:I

    .line 183
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget v1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->progress:I

    int-to-float v1, v1

    const/high16 v2, 0x43b40000

    div-float/2addr v1, v2

    const/high16 v2, 0x42c80000

    mul-float/2addr v1, v2

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "%"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->setText(Ljava/lang/String;)V

    .line 184
    invoke-virtual {p0}, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->invalidate()V

    .line 185
    return-void
.end method

.method public setRimColor(I)V
    .registers 2
    .param p1, "rimColor"    # I

    .prologue
    .line 286
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimColor:I

    .line 287
    return-void
.end method

.method public setRimShader(Landroid/graphics/Shader;)V
    .registers 3
    .param p1, "shader"    # Landroid/graphics/Shader;

    .prologue
    .line 294
    iget-object v0, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimPaint:Landroid/graphics/Paint;

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;

    .line 295
    return-void
.end method

.method public setRimWidth(I)V
    .registers 2
    .param p1, "rimWidth"    # I

    .prologue
    .line 310
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->rimWidth:I

    .line 311
    return-void
.end method

.method public setSpinSpeed(I)V
    .registers 2
    .param p1, "spinSpeed"    # I

    .prologue
    .line 302
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->spinSpeed:I

    .line 303
    return-void
.end method

.method public setText(Ljava/lang/String;)V
    .registers 2
    .param p1, "text"    # Ljava/lang/String;

    .prologue
    .line 198
    iput-object p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->text:Ljava/lang/String;

    .line 199
    return-void
.end method

.method public setTextSize(I)V
    .registers 2
    .param p1, "textSize"    # I

    .prologue
    .line 230
    iput p1, p0, Lcom/zuimeia/ui/progresswheel/ProgressWheel;->textSize:I

    .line 231
    return-void
.end method
